package pulpfizz.physics.contact;

import org.jbox2d.collision.ContactID;
import org.jbox2d.collision.Shape;
import org.jbox2d.common.Vec2;

/**
 * Holder for contact event information.  Passed
 * from a ContactEventDispatcher to a ContactEventListener.
 * 
 * @author eric
 */
public class ContactData {
	public static final int ADD = 0;
	public static final int PERSIST = 1;
	public static final int REMOVE = 2;
	
	public Shape shape1;
	public Shape shape2;
	public Vec2 normal;
	public Vec2 position;
	public int state; // 0-add, 1-persist, 2-remove
	public float friction;
	public ContactID id;
	public float restitution;
	public float separation;
	public Vec2 velocity;
}
